package tex.base;

import java.util.Vector;

public class Document {
	private final Vector<String> options;
	private final Vector<Element> corpo;
	
	public Document() {
		options = new Vector<String>();
		corpo = new Vector<Element>();
	}

	/**
	 * @return the options
	 */
	public Vector<String> getOptions() {
		return options;
	}

	/**
	 * @return the corpo
	 */
	public Vector<Element> getCorpo() {
		return corpo;
	}
	
	@Override
	public String toString() {
		return "(document {docops: " + options.toString() + "}\n{corpo " + corpo.toString() + "}";
	}

	public void generateDocument(StringBuffer buffer, Tex tex) {
		for (Element e : corpo) {
			e.generateDocument(buffer, tex);
		}
	}
}
